const BlogCtrl = require('./blog.ctrl')
const checkToken = require('../../middleware/checkToken')
module.exports = router => {
  router
    .get('/acticles/:id', BlogCtrl.getBlog)
    .get('/acticles', BlogCtrl.getBlogs)
    .post('/acticles', checkToken, BlogCtrl.createBlogs)
    .put('/acticles', checkToken, BlogCtrl.updateBlogs)
    .delete('/acticles/:id', checkToken, BlogCtrl.deleteBlog)
}